import { createRouter, createWebHashHistory } from "vue-router";
import login from "./login.vue";
import main from "./pages/main.vue";
import dashboard from "./pages/dashboard.vue"; // 假设有一个展示首页信息的组件
import systemNotice from "./pages/systemNotice.vue"; // 假设有一个展示系统公告的组件
import routeManage from "./pages/routeManage.vue";//线路管理
import scheduleManage from "./pages/scheduleManage.vue";
import carManage from "./pages/carManage.vue";
import orderManage from "./pages/orderManage.vue";
import customerManage from "./pages/customerManage.vue";
import userManage from "./pages/userManage.vue";
import roleManage from "./pages/roleManage.vue";
import operationLog from "./pages/operationLog.vue";
import passengerFlowStatistics from "./pages/passengerFlowStatistics.vue"
import ticketRevenueStatistics from "./pages/ticketRevenueStatistics.vue"
import vehicleOperationStatistics from "./pages/vehicleOperationStatistics.vue"




export default createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: '/',
      component: login
    },
    {
      path: '/main',
      component: main,
      children: [
        {
          path: '/dashboard',
          component: dashboard
        },
        {
          path: '/systemNotice',
          component: systemNotice
        },
        {
          path: '/routeManage',
          component: routeManage
        },
        {
          path: '/scheduleManage',
          component: scheduleManage
        },
        {
          path: '/carManage',
          component: carManage
        },
        {
          path: '/orderManage',
          component: orderManage
        },
        {
          path: '/customerManage',
          component: customerManage
        },
        {
          path: '/userManage',
          component: userManage
        },
        {
          path: '/roleManage',
          component: roleManage
        },
        {
          path: '/operationLog',
          component: operationLog
        },
        {
          path: '/passengerFlowStatistics',
          component: passengerFlowStatistics
        },
        {
          path: '/ticketRevenueStatistics',
          component: ticketRevenueStatistics
        },
        {
          path: '/vehicleOperationStatistics',
          component: vehicleOperationStatistics
        },
      ]
    }
  ]
});